package com.itheima.brand.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.goods.pojo.Brand;
import com.itheima.goods.pojo.Category;
import entity.PageResult;

import java.util.List;

/**
 * @author wang
 * @description
 * @date 2021/7/30 10:01
 */
public interface BrandService extends IService<Brand> {
    List<Brand> findAll();

    boolean add(Brand brand);

    PageResult findPage4Get(Integer page, Integer size);

    PageResult findPage4Post(Integer page, Integer size, Brand brand);

    Brand findById(Integer id);

    boolean deleteById(Integer id);

    boolean updateBrand(Brand brand, Integer id);
}
